projects
/
git-annex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b7293f
)
debug test suite crash on windows
author
Joey Hess
<joeyh@joeyh.name>
Wed, 29 Jan 2025 20:37:54 +0000
(16:37 -0400)
committer
Joey Hess
<joeyh@joeyh.name>
Wed, 29 Jan 2025 20:37:54 +0000
(16:37 -0400)
Git/HashObject.hs
patch
|
blob
|
history
diff --git
a/Git/HashObject.hs
b/Git/HashObject.hs
index 35031f20aed9f9a8893ad9acca5c50f49f817da9..85d027348ba2593e6479a9a735367c728ae9b712 100644
(file)
--- a/
Git/HashObject.hs
+++ b/
Git/HashObject.hs
@@
-49,6
+49,10
@@
hashFile hdl@(HashObjectHandle h _ _) file = do
-- So, make the filename absolute, which will work now
-- and also if git's behavior later changes.
file' <- absPath file
+ -- XXX windows crash debugging
+#ifndef mingw32_HOST_OS
+ hPutStrLn stderr $ show ("hashFile called on file", file, "abspath is", file')
+#endif
if newline `S.elem` file' || carriagereturn `S.elem` file
then hashFile' hdl file
else CoProcess.query h (send file') receive